if msg == ".help":
    tellrawText(playername, text = "输入§b.admin§r查看管理员菜单帮助")
if msg == ".admin":
    tellrawText(playername, "§l§6Ritle§aBlock§r", "\n管理选项 帮助菜单\n§r输入§b.admin ban <玩家名> <时间> [理由] §r封禁玩家(仅管理可用)")
if len(msg) >= 120 and not((playername in adminnorm or playername in adminhigh)):
    ban(playername, 120, "刷屏")
if ".admin ban" in msg and msg[0:4] == ".adm": #管理命令：ban的执行的内容
    if playername in adminnorm or playername in adminhigh: #若玩家有协管及以上权限.
        playerbannowtext = msg.replace(".admin ban ", "").replace("<", "").replace(">", "").split(" ", 2)
        if len(playerbannowtext) == 3: #如果输入了理由.
            ban(playerbannowtext[0], playerbannowtext[1], playerbannowtext[2], playername)
        elif len(playerbannowtext) == 2 or (len(playerbannowtext) == 3 and playerbannowtext[3] == ""): #如果没有输入理由
            ban(playerbannowtext[0], playerbannowtext[1], "无原因.", playername)
        else: #若命令语法不正确.
            tellrawText(playername, "§l§4ERROR§r", "§c缺少参数")
    else: #如果玩家权限不足.
        tellrawText(playername, "§l§4ERROR§r", "§c权限组级别不够.")
